home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / gnulib / sipp / srgp / src / grx / status.c < prev   
Encoding:
C/C++ Source or Header  |  1992-04-15  |  1.3 KB  |  60 lines

  1. #include "HEADERS.h"
  2. #include "srgplocal.h"
  3.  
  4. /**
  5.  ** GRX VERSION OF state.c
  6.  **   This contains no conditionally compiled code because it should be used
  7.  **   only in the GRX version.
  8.  **/
  9. void SRGP__initGraphicsDevice(char *name,int requested_planes,boolean debugasap)
  10. {
  11.     int colors;
  12.     int width,height;
  13.     int xpos,ypos;
  14.  
  15.     width  = srgp__curActiveCanvasSpec.max_xcoord + 1;
  16.     height = srgp__curActiveCanvasSpec.max_ycoord + 1;
  17.     if(requested_planes <= 1)
  18.         colors = 2;
  19.     if(requested_planes <= 4)
  20.         colors = 16;
  21.     else if(requested_planes <= 8)
  22.         colors = 256;
  23.     else colors = 32768;
  24.     GrSetMode(GR_width_height_color_graphics,width,height,colors);
  25.     GrSaveContext(&srgp__curActiveCanvasSpec.grx_canvas);
  26. /*    srgp__curActiveCanvasSpec.max_xcoord = srgp__curActiveCanvasSpec.grx_canvas.gc_xmax;
  27.     srgp__curActiveCanvasSpec.max_ycoord = srgp__curActiveCanvasSpec.grx_canvas.gc_ymax;    */
  28.     srgp__curActiveCanvasSpec.drawable.bitmap = &srgp__curActiveCanvasSpec.grx_canvas;
  29.     SRGP__initColor(requested_planes);
  30. }
  31.  
  32. void SRGP__closeGraphicsDevice(void)
  33. {
  34.     GrSetMode(GR_default_text);
  35. }
  36.  
  37.  
  38. /** SRGP_refresh -- dummy here **/
  39.  
  40. void SRGP_refresh(void)
  41. {
  42.     return;
  43. }
  44.  
  45. /** SRGP_enableSynchronous -- dummy here **/
  46.  
  47. void SRGP_enableSynchronous()
  48. {
  49.     return;
  50. }
  51.  
  52. /*!*/
  53.  
  54. void SRGP_allowResize(boolean allow)
  55. {
  56.     return;
  57. }
  58.  
  59.  
  60.